﻿@model IEnumerable<News.CYT369.Com.Domains.Document>
@{
    int pageNumber = (int)ViewBag.page;
    int totalPage = (int)ViewBag.total_page;
}
<div class="left-panel">
    <div class="header">
        <div class="flash-imgs"><img src="https://img.36krcdn.com/20220331/v2_69d6d89d90e74966840f8761fa6b5fc8_img_jpg" /></div>
        <ul class="rolling-imgs">
            <li class="item"><img src="https://img.36krcdn.com/20220331/v2_1d0a79f2b2b149ee979b43cdc610044a_img_png" /></li>
            <li class="item"><img src="https://img.36krcdn.com/20220331/v2_c46d17608b9847d3b33c9011b161d3b0_img_png" /></li>
            <li class="item"><img src="https://img.36krcdn.com/20220331/v2_e6ea83a5d539440eafdcaf547e77e11f_img_png" /></li>
        </ul>
    </div>
    <div class="recent-arts">
        <div class="big-name">最近文章</div>
        <ul class="articles-list">
            <partial name="../Articles/_PartialIndex" model="Model" />
        </ul>
        @if (Model != null && Model.Count() > 0 && pageNumber < totalPage)
        {
            var url = $"~/Home/Index/{Base64.ObjectToBase64(new { Page = pageNumber + 1 })}.chtml";
            <div class="more-articles" onclick="LoadNextDoc(this)">
                <a style="display:none" href="@Url.Content(url)">下一页</a>
                <span>加载更多...</span>
            </div>
        }
    </div>
</div>
